@import (reference) "color";
@width-tab-list: 24px;
@width-stock-info: 220px;
@space-common: 10px;
@height-top-bar: 30px;
a, a:hover, a:active, a:target {
  color: @color-black-dark;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center !important;
}

.clickable-wrapper {
  .clickable {
    cursor: pointer;
  }
}

.full-height {
  height: 100%;
  overflow-y: hidden;
}

.transition(@property: all, @duration: 0.2s, @timing: ease, @delay: 0s) {
  transition: @property @duration @timing @delay;
  -webkit-transition: @property @duration @timing @delay;
  -moz-transition: @property @duration @timing @delay;
  -ms-transition: @property @duration @timing @delay;
}

.transition-property(@list) {
  transition-property: @list;
  -webkit-transition-property: @list;
  -moz-transition-property: @list;
  -ms-transition-property: @list;
}

.animate(@name: fadeInAni, @duration: 0.3s, @iteration: 1) {
  animation-iteration-count: @iteration;
  -webkit-animation-iteration-count: @iteration;
  -moz-animation-iteration-count: @iteration;
  -ms-animation-iteration-count: @iteration;
  -o-animation-iteration-count: @iteration;
  -webkit-animation-name: @name;
  -ms-animation-name: @name;
  animation-name: @name;
  animation-duration: @duration;
  -webkit-animation-duration: @duration;
  -ms-animation-duration: @duration;
}

.display-flex( @direction: column, @justify-content: space-between, @align-items: stretch) {
  display: block;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-direction: @direction;
  -webkit-flex-direction: @direction;
  -ms-flex-direction: @direction;
  justify-content: @justify-content;
  -webkit-justify-content: @justify-content;
  -ms-flex-pack: @justify-content;
  align-items: @align-items;
  -webkit-align-items: @align-items;
  -ms-flex-align: @align-items;
}

.flex(@grow: 1, @shrink: 1, @basis: auto) {
  -webkit-flex: @grow @shrink @basis;
  -ms-flex: @grow @shrink @basis;
  flex: @grow @shrink @basis;
}

.flex-shrink(@shrink: 0) {
  -webkit-flex-shrink: @shrink;
  flex-shrink: @shrink;
}

.flex-grow(@grow: 0) {
  -webkit-flex-grow: @grow;
  flex-grow: @grow;
}

@keyframes fadeInAni {
  from {
    opacity: 0
  }
  to {
    opacity: 1
  }
}

.red-bg-white-fg {
  color: @list-text-black;
  background-color: @list-white;
  &:hover,
  &.active,
  &:active {
    color: @list-white;
    background-color: @list-items-active-bg
  }
}

.quote-link {
  display: inline-block;
  color: @list-text-black;
  padding: 2px 5px;
  border: 1px solid @list-items-bg;
  background-color: @list-white;
  border-radius: 3px;
  &:hover,
  &.active,
  &:active {
    color: @list-white;
    background-color: @list-items-active-bg
  }
}

.drawer-toggle {
  color: @color-black-light;
  &:active,
  &.active {
    color: @color-blue-dart;
  }
}

cm-modal {
  position: fixed;
}

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-osx-font-smoothing: grayscale;
}

body {
  // font-size: 1.4rem;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", "PingFangSC-Regular", Helvetica, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, "Microsoft Sans Serif", sans-serif;
  overflow: hidden;
}

a {
  text-decoration: none;
}

hr {
  border: 0;
  border-bottom: 1px solid @color-gray-main;
}

.with-percent {
  &::after {
    content: "%";
  }
}

.scroll-bar {
  background-color: white;
}

&::-webkit-scrollbar {
  width: 6px;
}

&::-webkit-scrollbar-track {
  background-color: #FFF;
}

&::-webkit-scrollbar-thumb {
  height: 10px;
  border-radius: 4px;
  background-color: #CCC;
  border-left: 1px solid #EEE;
  border-top: 1px solid #EEE;
}

.modal-dialog {
  article p {
    margin: 0;
    line-height: 1.5;
  }
}

// common style
ul {
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}


/* 去掉焦点高亮 */

* {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -ms-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
  -ms-tap-highlight-color: transparent;
  outline: none;
  box-sizing: border-box;
  &:focus {
    outline: none;
  }
}

.font-mono {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

// chrome safari
input::-webkit-textfield-decoration-container {}

input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

// 去除chrome自动填充的黄色背景
input::-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #333;
}

// firefox
input[type="number"] {
  -moz-appearance: textfield;
}

.data-table {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@border-simple: 1px solid @color-gray-main;
@border-simple-dark: 1px solid @color-gray-middle;
.quote-chart,
quote-chart,
.quote-chart-outer,
.chart-wrapper {
  .display-flex;
  .flex;
}

.kchart-container,
.chart-container,
kchart,
.k-chart {
  .display-flex;
  .flex;
}